import request from '@/utils/request'

export function getList(params) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/skuMold/index',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/skuMold/edit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/skuMold/del',
    method: 'post',
    data,
  })
}
export function getPinYin(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/skuCategoryValue/getPinYin',
    method: 'post',
    data,
  })
}
/**
 * 获取分类详情，以及当前分类下属性
 * @param queryParams
 */
export function detailCateories(queryParams) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/skuMold/detail',
    method: 'get',
    params: queryParams
  })
}
